package cn.tedu.review;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/*
Author     :Dsi
Date       : 2021/11/23 9:49
Description: 
*/
public class TestAnno {

}
@Target({ElementType.TYPE,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@interface Dog{
    double a() default 40.5;
    int value();
    //int s1();

}
class D{
    //@Dog(a=30.3,s1=45,value=10)
    @Dog(10)
    String a;
    public void s(){}
}